The y position of the character depends on the window's y coordinate,
not its x coordinate.
gdk_window_get_origin (window, &x_window, &y_window);
*x = x_window + x_layout + char_rect.x;
- *y = x_window + y_layout + char_rect.y;
+ *y = y_window + y_layout + char_rect.y;
*width = char_rect.width;
*height = char_rect.height;
gdk_window_get_origin (window, &x_window, &y_window);
*x = x_window + x_layout + char_rect.x;
- *y = x_window + y_layout + char_rect.y;
+ *y = y_window + y_layout + char_rect.y;
*width = char_rect.width;
*height = char_rect.height;